package com.ruoyi.wechat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 微信用户对象 wx_user
 * 
 * @author ruoyi
 * @date 2024-08-21
 */
public class WxUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** openid */
    @Excel(name = "openid")
    private String openid;

    /** 微信用户头像 */
    @Excel(name = "微信用户头像")
    private String wxProfileImg;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long uniacid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String userName;

    /** 总积分 */
    @Excel(name = "总积分")
    private Long allIntegral;

    /** 现有积分 */
    @Excel(name = "现有积分")
    private Long nowIntegral;

    /** 上级用户id */
    @Excel(name = "上级用户id")
    private Long parentsId;

    /** 上级用户昵称 */
    @Excel(name = "上级用户昵称")
    private String parentsName;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String userTel;

    /** 微信用户是否实名认证 */
    @Excel(name = "微信用户是否实名认证")
    private Integer isCertified;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setWxProfileImg(String wxProfileImg) 
    {
        this.wxProfileImg = wxProfileImg;
    }

    public String getWxProfileImg() 
    {
        return wxProfileImg;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setUniacid(Long uniacid) 
    {
        this.uniacid = uniacid;
    }

    public Long getUniacid() 
    {
        return uniacid;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setAllIntegral(Long allIntegral) 
    {
        this.allIntegral = allIntegral;
    }

    public Long getAllIntegral() 
    {
        return allIntegral;
    }
    public void setNowIntegral(Long nowIntegral) 
    {
        this.nowIntegral = nowIntegral;
    }

    public Long getNowIntegral() 
    {
        return nowIntegral;
    }
    public void setParentsId(Long parentsId) 
    {
        this.parentsId = parentsId;
    }

    public Long getParentsId() 
    {
        return parentsId;
    }
    public void setParentsName(String parentsName) 
    {
        this.parentsName = parentsName;
    }

    public String getParentsName() 
    {
        return parentsName;
    }
    public void setUserTel(String userTel) 
    {
        this.userTel = userTel;
    }

    public String getUserTel() 
    {
        return userTel;
    }
    public void setIsCertified(Integer isCertified) 
    {
        this.isCertified = isCertified;
    }

    public Integer getIsCertified() 
    {
        return isCertified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid", getOpenid())
            .append("wxProfileImg", getWxProfileImg())
            .append("time", getTime())
            .append("uniacid", getUniacid())
            .append("userName", getUserName())
            .append("allIntegral", getAllIntegral())
            .append("nowIntegral", getNowIntegral())
            .append("parentsId", getParentsId())
            .append("parentsName", getParentsName())
            .append("userTel", getUserTel())
            .append("isCertified", getIsCertified())
            .toString();
    }
}
